package 蓝桥真题;

import java.util.Scanner;

public class 字串排序 {
       static Scanner sc=new Scanner(System.in);
       static int n;
       
       public static void main(String[] args) {
		      n=sc.nextInt();
		      int i=0;
		      for(i=1;i<=200;i++){
		    	  if((1+i)*i/2>=n)break;
		      }
		      System.out.println(i);
		      int num=(1+i)*i/2-n;
		      System.out.println(num);
		      i++;
		      String s="";
		      for(int j=num-1;j>=0;j--){
		    	  char t=(char) ('a'+j);
		    	  s=s+t+t;
		      }
		      char t='a';
		      if(num!=0)t=(char)(s.charAt(0)+1);
		      i-=num*2;
		      while(i-->0){
		    	  s=t+s;
		    	  t=(char)(t+1);
		      }
		      System.out.print(s);
		      
	}
}
